import VueRouter from 'vue-router'
import Home from './components/tabbar/HomeContainer.vue'
import Search from './components/tabbar/SearchContainer.vue'
import Shopping from './components/tabbar/ShoppingContainer.vue'
import User from './components/tabbar/UserContainer.vue'
import NewsList from './components/news/NewsList.vue'
import NewsInfor from './components/news/NewInfor.vue'
import ImagesList from './components/imagesComponents/imagesList.vue'
import ImageInfor from './components/imagesComponents/imageInfor.vue'
import GoodsList from './components/goods/goodsList.vue'
import GoodsInfo from './components/goods/goodsInfo.vue'
import GoodIntroduce from './components/goods/goodIntroduce.vue'
import GoodComment from './components/goods/goodComment.vue'
const router = new VueRouter({
    routes: [
        {path: '/', redirect: '/home'},
        {path: '/home', component: Home},
        {path: '/search', component: Search},
        {path: '/shopping', component: Shopping},
        {path: '/user', component: User},
        {path: '/home/newsList', component: NewsList},
        {path: '/home/newsinfor/:id', component: NewsInfor},
        {path: '/home/imagesList', component: ImagesList},
        {path: '/home/imageInfor/:id', component: ImageInfor},
        {path: '/home/goodsList', component: GoodsList},
        {path:'/home/goodsInfo/:id',component:GoodsInfo},
        {path:'/home/goodsIntroduce/:id',component:GoodIntroduce},
        {path:'/home/goodsComment/:id',component:GoodComment}
    ],
    linkActiveClass: 'mui-active'  //设置激活链接高亮的类为mui中的
});

export default router;
